package com.ruoyi.party.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.party.system.domain.ActivitySign;
import com.ruoyi.party.system.service.IActivitySignService;

@Controller
@RequestMapping("/business/activitysign")
public class ActivitySignController extends BaseController {

	@Autowired
	private IActivitySignService activitySignService;

	@Log(title = "党组织活动记录", businessType = BusinessType.INSERT)
	@PostMapping("/add")
	@ResponseBody
	public AjaxResult addSave(@Validated ActivitySign activitySign) {
		return toAjax(activitySignService.insertActivitySign(activitySign));
	}
}
